package com.cmc.cloud.cmclink.doc.api.document.rep.manifestrep.manifest;

import com.cmc.cloud.cmclink.doc.api.document.rep.manifestrep.manifestcargo.ManifestCargoRespVO;
import com.cmc.cloud.cmclink.doc.api.document.rep.manifestrep.manifestcntr.ManifestCntrEdiBaseVO;
import com.cmc.cloud.cmclink.doc.api.document.rep.manifestrep.manifestcntr.ManifestCntrRespVO;
import com.cmc.cloud.cmclink.doc.api.document.rep.manifestrep.manifestscn.ManifestScnRespVO;
import com.cmc.cloud.cmclink.doc.api.document.rep.manifestrep.manifestvslvoy.ManifestVslvoyRespVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * 舱单主Response VO
 *
 * @author chenzheng
 */
@Schema(description = "管理后台 - 舱单主 Response VO")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
public class ManifestInfoEdiRespVO implements Serializable {
    @Schema(description = "舱单")
    private ManifestRespVO manifest;
    @Schema(description = "货物信息")
    private List<ManifestCargoRespVO> manifestCargoList;
    @Schema(description = "箱信息")
    private List<ManifestCntrRespVO> manifestCntrList;
    @Schema(description = "相关方")
    private List<ManifestScnRespVO> manifestScnList;
    @Schema(description = "舱单航次路径")
    private List<ManifestVslvoyRespVO> manifestVslvoyList;
    @Schema(description = "分单信息")
    private List<ManifestAssociate> associatedNoList;
    @Schema(description = "是与当前提单有拼箱关系的提单下所有箱信息的列表")
    private List<ManifestCntrEdiBaseVO> associatedCntrList;
    @Schema(description = "拼箱关系的提单")
    private List<String> associatedCntrManifestList;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class ManifestAssociate {
        @Schema(description = "分单号")
        private String no;
        @Schema(description = "并单-COMBINE;拆单-SPLIT")
        private String opType;
    }
}
